home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2006 May / PCWMAY06.iso / Software / Freeware / First Page 2006 3.00 / fp2006-final-3.00-setup.exe / {app} / Iscripts / Links / text-moves-button.izs < prev    next >
Text File  |  2005-08-07  |  2KB  |  76 lines

  1. <!NOWIZARD>
  2.  
  3. <!TITLE>text that moves in button
  4. <!/TITLE>
  5.  
  6. <!DESCRIPTION>Text moving button!
  7. <!/DESCRIPTION> 
  8.  
  9. <!CATEGORY>links<!/CATEGORY>
  10.  
  11. <!SCRIPT>
  12. <!-- START OF SCRIPT -->
  13. <CENTER>
  14. <form name="form2" onSubmit=null>
  15. <!-- Replace the 'onSubmit=null' with 'action=[blah.html]' -->
  16. <input type="submit" name="banner" VALUE=".......Submit.......">
  17. </form>
  18. </CENTER>
  19.  
  20. <script language="JavaScript">
  21. // Copyright 1998 Jon Eyrick - action1@vfr.net
  22. // http://www.geocities.com/CapeCanaveral/4155/
  23. // I do not take full credit for this script, I only made half of this..
  24. var id,pause=0,position=0;
  25. function banner() {
  26.         // variables declaration
  27.         var i,k,msg="  Submit  Submit  Submit  Submit  Submit";
  28.         // increase msg
  29.         k=(60/msg.length)+1;
  30.         for(i=0;i<=k;i++) msg+=" "+msg;
  31.         // show it to the window
  32.         document.form2.banner.value=msg.substring(position,position+60);
  33.         // set new position
  34.         if(position++==msg.length) position=0;
  35.         // repeat at entered speed 
  36.         id=setTimeout("banner()",150); }
  37. // end -->
  38. banner();
  39. </script>
  40. <!-- END OF SCRIPT -->
  41. <!/SCRIPT>
  42.  
  43. <!PREVIEW>
  44. <!-- START OF SCRIPT -->
  45.  
  46. <CENTER>
  47. <form name="form2" onSubmit=null>
  48. <!-- Replace the 'onSubmit=null' with 'action=[blah.html]' -->
  49. <input type="submit" name="banner" VALUE=".......Submit.......">
  50. </form>
  51. </CENTER>
  52.  
  53. <script language="JavaScript">
  54. // Copyright 1998 Jon Eyrick - action1@vfr.net
  55. // http://www.geocities.com/CapeCanaveral/4155/
  56. // I do not take full credit for this script, I only made half of this..
  57. var id,pause=0,position=0;
  58. function banner() {
  59.         // variables declaration
  60.         var i,k,msg="  Submit  Submit  Submit  Submit  Submit";
  61.         // increase msg
  62.         k=(60/msg.length)+1;
  63.         for(i=0;i<=k;i++) msg+=" "+msg;
  64.         // show it to the window
  65.         document.form2.banner.value=msg.substring(position,position+60);
  66.         // set new position
  67.         if(position++==msg.length) position=0;
  68.         // repeat at entered speed 
  69.         id=setTimeout("banner()",150); }
  70. // end -->
  71. banner();
  72. </script>
  73. <!-- END OF SCRIPT -->
  74. <!/PREVIEW>
  75.  
  76. <!RELATED>NONE<!/RELATED>